package cn.chia.pojo;

/**
 * Orderitems entity. @author MyEclipse Persistence Tools
 * 订单明细实体类
 */

public class Orderitems implements java.io.Serializable {

	// Fields

	private Integer id;           //订单id
	private TblItems tblItems;    //商品外键
	private Orders orders;        //订单外键
	private Integer count;        //商品购买数量
	private Double subtotal;      //此商品金额小计
	private String itemname;      //商品名
	private String itempic;       //商品图片地址

	// Constructors

	/** default constructor */
	public Orderitems() {
	}

	/** full constructor */
	public Orderitems(TblItems tblItems, Orders orders, Integer count,
			Double subtotal, String itemname, String itempic) {
		this.tblItems = tblItems;
		this.orders = orders;
		this.count = count;
		this.subtotal = subtotal;
		this.itemname = itemname;
		this.itempic = itempic;
	}

	// Property accessors


	public TblItems getTblItems() {
		return this.tblItems;
	}

	

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public void setTblItems(TblItems tblItems) {
		this.tblItems = tblItems;
	}

	public Orders getOrders() {
		return this.orders;
	}

	public void setOrders(Orders orders) {
		this.orders = orders;
	}

	public Integer getCount() {
		return this.count;
	}

	public void setCount(Integer count) {
		this.count = count;
	}

	public Double getSubtotal() {
		return this.subtotal;
	}

	public void setSubtotal(Double subtotal) {
		this.subtotal = subtotal;
	}

	public String getItemname() {
		return this.itemname;
	}

	public void setItemname(String itemname) {
		this.itemname = itemname;
	}

	public String getItempic() {
		return this.itempic;
	}

	public void setItempic(String itempic) {
		this.itempic = itempic;
	}

}